<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>首页导航</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .nav-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            padding: 20px;
        }

        .nav-item {
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            color: #333;
        }

        .nav-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            background-color: #f8f9fa;
        }

        .nav-item h3 {
            margin: 0 0 10px 0;
            color: #2c3e50;
        }

        .nav-item p {
            margin: 0;
            color: #666;
            font-size: 14px;
        }

        .category {
            margin-bottom: 30px;
        }

        .category h2 {
            color: #2c3e50;
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="header">
        <h1>项目导航</h1>
    </div>

    <div class="category">
        <h2>基础功能</h2>
        <div class="nav-grid">
            <a href="login.jsp" class="nav-item">
                <h3>登录页面</h3>
                <p>用户登录和认证</p>
            </a>
            <a href="profile.jsp" class="nav-item">
                <h3>个人资料</h3>
                <p>用户信息管理</p>
            </a>
            <a href="todo.jsp" class="nav-item">
                <h3>待办事项</h3>
                <p>任务管理功能</p>
            </a>
        </div>
    </div>

    <div class="category">
        <h2>表单和数据处理</h2>
        <div class="nav-grid">
            <a href="form-demo.jsp" class="nav-item">
                <h3>表单演示</h3>
                <p>表单提交示例</p>
            </a>
            <a href="form-data.jsp" class="nav-item">
                <h3>表单数据</h3>
                <p>查看提交的数据</p>
            </a>
            <a href="table-demo.jsp" class="nav-item">
                <h3>表格演示</h3>
                <p>数据表格展示</p>
            </a>
        </div>
    </div>

    <div class="category">
        <h2>社区和收藏</h2>
        <div class="nav-grid">
            <a href="community.jsp" class="nav-item">
                <h3>社区</h3>
                <p>用户交流平台</p>
            </a>
            <a href="favorites.jsp" class="nav-item">
                <h3>收藏夹</h3>
                <p>收藏内容管理</p>
            </a>
        </div>
    </div>

    <div class="category">
        <h2>展示组件</h2>
        <div class="nav-grid">
            <a href="carousel.jsp" class="nav-item">
                <h3>轮播图</h3>
                <p>图片轮播展示</p>
            </a>
            <a href="gallery-demo.jsp" class="nav-item">
                <h3>图片画廊</h3>
                <p>图片展示功能</p>
            </a>
        </div>
    </div>
</div>
</body>
</html>
